package com.topnav.mc.admin.service.impl;

import com.alibaba.fastjson2.JSON;
import com.topnav.mc.admin.dao.mapper.EntityOperateLogMapper;
import com.topnav.mc.admin.entity.EntityOperateLog;
import com.topnav.mc.admin.entity.bean.EntityOperateLogBean;
import com.topnav.mc.admin.entity.param.EntityOperateLogParam;
import com.topnav.mc.admin.service.IEntityOperateLogService;
import com.topnav.mc.base.mc.McServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class EntityOperateLogServiceImpl extends McServiceImpl<EntityOperateLogMapper, EntityOperateLog, EntityOperateLogBean, EntityOperateLogParam> implements IEntityOperateLogService {

    @Deprecated
    @Override
    public void saveLog(Object obj, String eneityName, String operate) {
/*

        EntityOperateLog log = new EntityOperateLog();
        log.setOperate(operate);
        log.setEntityName("Device");
        log.setState(0);
        log.setOperateDate(new Date());
        log.setData(JSON.toJSON(obj).toString());
        this.save(log);
*/

    }
}
